﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Core.Features.Salutations.HelloDialog"
	d:DesignWidth="465" d:DesignHeight="325">
	<Grid x:Name="LayoutRoot" >
		<Path Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" StrokeThickness="2" Fill="DarkGray" 
		Data="F1 M 243,89.3333L 538.46,89.3333L 538.46,256.138L 286.667,256.139L 288,280.833L 269.675,256.138L 242.987,256.138L 243,89.3333 Z " 
		Margin="8" UseLayoutRounding="False"/>
		<Grid Name="MainBodyGrid" Margin="11,8,11,50">
            <Grid x:Name="SalutationGrid">
                <TextBlock Text="{Binding HelloSentence}" FontSize="45" Foreground="Black"
                       HorizontalAlignment="Center" VerticalAlignment="Center"
                       MaxWidth="465" TextWrapping="Wrap"/>
            </Grid>
            <Grid Name="UserInfoGrid">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock Text="{Binding AskSentence}" FontSize="30" Foreground="Black"
                       MaxWidth="465" TextWrapping="Wrap" Margin="10"/>
                <TextBox Grid.Row="1" Text="{Binding UserName, Mode=TwoWay}" Name="tbxUserName"/>
                <Button Grid.Row="2" Content="Okay!" Foreground="Black"
                        Command="{Binding UernameInfoCommand, Mode=OneWay}"
                        CommandParameter="{Binding ElementName=tbxUserName, Path=Text}"
                        HorizontalAlignment="Center"/>
            </Grid>
            <Grid Name="UserInfoConfirmation">
                <TextBlock Text="{Binding AskSentenceConfirmation}" FontSize="45" 
                       Foreground="Black" HorizontalAlignment="Center" TextAlignment="Left"
                       VerticalAlignment="Center" MaxWidth="465" TextWrapping="Wrap"/>
            </Grid>
        </Grid>
	</Grid>
</UserControl>